home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / modules / nessus-2.2.8.mo / usr / lib / nessus / plugins / ipinsight_detection.nasl < prev    next >
Text File  |  2005-01-14  |  5KB  |  145 lines

  1. #
  2. # Copyright (C) 2004 Tenable Network Security 
  3. #
  4. #
  5.  
  6. if(description)
  7. {
  8.  script_id(12015);
  9.  script_version("$Revision: 1.4 $");
  10.  
  11.  name["english"] = "IPINSIGHT detection";
  12.  
  13.  script_name(english:name["english"]);
  14.  
  15.  desc["english"] = "
  16. The remote host is using the IPINSIGHT program.  
  17. You should ensure that:
  18. - the user intended to install IPINSIGHT (it is sometimes silently installed)
  19. - the use of IPINSIGHT matches your corporate mandates and security policies.
  20.  
  21. To remove this sort of software, you may wish to check out ad-aware or spybot. 
  22.  
  23.  
  24. See also : http://pestpatrol.com/PestInfo/i/ipinsight.asp 
  25. Solution : Uninstall this software
  26. Risk factor : High";
  27.  
  28.  
  29.  
  30.  script_description(english:desc["english"]);
  31.  
  32.  summary["english"] = "IPINSIGHT detection";
  33.  
  34.  script_summary(english:summary["english"]);
  35.  
  36.  script_category(ACT_GATHER_INFO);
  37.  
  38.  script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
  39.  family["english"] = "Windows";
  40.  script_family(english:family["english"]);
  41.  
  42.  script_dependencies("smb_registry_full_access.nasl");
  43.  script_require_keys("SMB/registry_full_access");
  44.  
  45.  script_require_ports(139, 445);
  46.  exit(0);
  47. }
  48.  
  49.  
  50. # start the script
  51. if ( ! get_kb_item("SMB/registry_full_access" )) exit(0);
  52.  
  53.  
  54. path[0] = "software\classes\babeie.agentie";
  55. path[1] = "software\classes\babeie.agentie.1";
  56. path[2] = "software\classes\babeie.agentie\clsid";
  57. path[3] = "software\classes\babeie.agentie\curver";
  58. path[4] = "software\classes\babeie.handler\clsid";
  59. path[5] = "software\classes\babeie.handler\curver";
  60. path[6] = "software\classes\babeie.helper\clsid";
  61. path[7] = "software\classes\babeie.helper\curver";
  62. path[8] = "software\classes\bredobj.bredobj";
  63. path[9] = "software\classes\bredobj.bredobj.1";
  64. path[10] = "software\classes\bredobj.bredobj\curver";
  65. path[11] = "software\classes\clsid\{00000000-0000-0000-0000-000000000000}";
  66. path[12] = "software\classes\clsid\{21ffb6c0-0da1-11d5-a9d5-00500413153c}";
  67. path[13] = "software\classes\clsid\{2eb3eff2-f707-4ea8-81aa-4b65d2799f31}";
  68. path[14] = "software\classes\clsid\{6656b666-992f-4d74-8588-8ca69e97d90c}";
  69. path[15] = "software\classes\clsid\{665acd90-4541-4836-9fe4-062386bb8f05}";
  70. path[16] = "software\classes\clsid\{9346a6bb-1ed0-4174-afb4-13cd4ec0aa40}";
  71. path[17] = "software\classes\ezulamain.trayiconm\clsid";
  72. path[18] = "software\classes\interface\{6e83ae1c-f69c-4aed-af98-d23c24c6fa4b}";
  73. path[19] = "software\classes\interface\{99908473-1135-4009-be4f-32b921f86ed9}";
  74. path[20] = "software\classes\tldctl2.urllink";
  75. path[21] = "software\classes\tldctl2.urllink.1";
  76. path[22] = "software\classes\typelib\{cc364a32-d59b-4e9c-9156-f0050c45005b}";
  77. path[23] = "software\classes\winnet.update\clsid";
  78. path[24] = "software\classes\winnet.update\curver";
  79. path[25] = "software\ipinsight";
  80. path[26] = "software\microsoft\windows\currentversion\app management\arpcache\ipinsight";
  81. path[27] = "software\microsoft\windows\currentversion\explorer\browser helper objects\{000004cc-e4ff-4f2c-bc30-dbef0b983bc9}";
  82. path[28] = "software\microsoft\windows\currentversion\run\sentry";
  83. path[29] = "software\microsoft\windows\currentversion\uninstall\ipinsight";
  84.  
  85. global_var handle;
  86.  
  87. include("smb_nt.inc");
  88. x_name = kb_smb_name();
  89. if(!x_name)exit(0);
  90.  
  91. _smb_port = kb_smb_transport();
  92. if(!_smb_port)exit(0);
  93.  
  94. if(!get_port_state(_smb_port)) exit(0);
  95. login = kb_smb_login();
  96. pass  = kb_smb_password();
  97. domain = kb_smb_domain();
  98.  
  99. if(!login)login = "";
  100. if(!pass) pass = "";
  101.  
  102.           
  103. soc = open_sock_tcp(_smb_port);
  104. if(!soc) exit(0);
  105.  
  106. #
  107. # Request the session
  108. r = smb_session_request(soc:soc,  remote:x_name);
  109. if(!r) { close(soc); exit(0); }
  110.  
  111. #
  112. # Negociate the protocol
  113. #
  114. prot = smb_neg_prot(soc:soc);
  115. if(!prot){ close(soc); exit(0); }
  116.  
  117.  
  118. r = smb_session_setup(soc:soc, login:login, password:pass, domain:domain, prot:prot);
  119. if(!r){ close(soc); exit(0); }
  120. uid = session_extract_uid(reply:r);
  121.  
  122. r = smb_tconx(soc:soc, name:x_name, uid:uid, share:"IPC$");
  123. tid = tconx_extract_tid(reply:r);
  124. if(!tid){ close(soc); exit(0); }
  125.  
  126.  
  127. r = smbntcreatex(soc:soc, uid:uid, tid:tid, name:"\winreg");
  128. if(!r){ close(soc); exit(0);}
  129. pipe = smbntcreatex_extract_pipe(reply:r);
  130.  
  131. r = pipe_accessible_registry(soc:soc, uid:uid, tid:tid, pipe:pipe);
  132. if(!r){ close(soc); exit(0); }
  133. handle = registry_open_hklm(soc:soc, uid:uid, tid:tid, pipe:pipe);
  134. if ( ! handle ) exit(0);
  135.  
  136.  
  137. for (i=0; path[i]; i++) {
  138.        key_h = registry_get_key(soc:soc, uid:uid, tid:tid, pipe:pipe, key:path[i], reply:handle);
  139.        if(key_h != NULL) {security_hole(kb_smb_transport()); exit(0); }
  140. }
  141.  
  142. close(soc);
  143.  
  144.